Search Version 2.2 (c)JBSoft 1993/4 Search is a program that will search for files or text within files, optionally across drives and within files that are open. The program is still at what I would call at a prototype stage at present as it is a major enhancement of a simple search program I wrote some time ago and has not had too much intensive testing. Please report any bugs or funnies as soon as possible so that I can sort out any teething problems. The program has changed a bit since the last version uploaded - see the end of this document for details of the changes. It is intended to tidy up the interface in the future - it's a bit messy at the moment but the program should be useable. The program is installed in the usual way - because it is a program that will probably only be run infrequently, I have not made it an App but left it as an OPO file. It should therefore be placed in the \OPO\ directory on any drive and should be run from the System screen as you would any other program. The first option given when running the program is whether to search for a file or to search within files. Next, either the filename is prompted for, or the text to search for within files. If Search Within was selected then an option for case sensitivity is also available. Filenames permit wildcards (e.g. AGENDA.*). The drives to search are also selected at this stage - the choices are either individual drives or all the drives. I've listed the Internal drive as M. The program is intelligent and only offers drives that exist. An option is given to save the search results to a file (the default name is M:\FIND.DAT but can be specified to be anything required. There is no built-in viewer for this file but it can be shown in Word. The last option available if searching for files is the option of sound - the default is sound off. The computer will beep when files are found or if there is a problem. If searching within files an option is included to search all files or only closed files. If the All option is selected then all open Applications are closed (if possible, any unsaved alterations will be saved when closing) before the search and opened up afterwards. There is a limit to how files can be opened up so, if you are in a Memo within the Agenda, after the search has ended you will be in the Agenda proper rather than the Memo. If only Closed files are chosen then any files that could not be searched will be displayed as the program runs. When the option to save the results to a file has been taken then these unchecked files are also displayed in the file (but on the screen at the end of the search). Filenames that match or contain the text being searched for are displayed in a window as the search progresses. It is possible to terminate the search early by pressing Escape. When the search is completed the list of files found or files that contained the search string are displayed in a simple viewer. Use the cursor controls to move around this list. A menu is available for additional options at this stage. Search Data ----------- If search within was used then, on pressing Psion-I, some details of the find are shown. This shows the search string, where it was found within the file and the part of the file that included the search string. Press a key to revert to the normal screen. New Search ---------- A new search can be started by pressing Psion-F. This option will ignore all currently found data and start again from scratch. Narrow Search ------------- It is possible to narrow down the search once the initial search has ended by pressing Psion-N. This will prompt for a new search string and the option to search For or In a file. If In a file is selected then, if the files are not already closed, an option will be given to search within only closed files or all files. This works in a similar fashion to the main search routine. N.B. The list of files previously found will not be kept so, at the end of this narrow search, if no files were found, the only option will be termination of the program. Launch file ----------- Psion-R will attempt to launch the highlighted file. When a file is launched and the Application is a built-in one, then the Find routine for that application should be accessed (all things being equal - they very rarely are), leaving you at the find position of the data within the file. Delete file ----------- Psion-D will produce a dialog box which will enable you to delete the currently highlighted file. Be careful with this command as there is no way back once 'Y' is pressed as a reponse to whether you wish to delete the file or not. Other keys ---------- Psion-A will produce an About screen. To terminate the program use Psion-X. Miscellaneous Information ------------------------- One file may be temporarily created during the operation of this program - in the Root directory of the M: (Internal) drive. This is to keep a note of the files that have been closed when searching all files (this file is not created unless the Search All Files option is selected). The filename is SELECT.DAT. If the program crashes this file may still exist but can be deleted with no problems. I hope this program is what people wanted - if not, let me know and I'll see what I can do... Thanks ------ My thanks to Tom Dolbilin for his continued assistance with my programming - his comments are what make my programs usable. Version 2.0 (4/4/94) ----------- 1st public release Version 2.1 (5/4/94) ----------- Added option for Case sensitive searching within files. Added option to switch off beeps when searching. Now finds all files as specified rather than just the first one in any directory. Fixed Search within files so that it actually works properly now! Reduced RAM overhead needed to run the file. More rigorous checking of available drives whilst the program is running. Version 2.2 (13/4/94) ----------- Rewrote the search routines to account for Data files and to clean up the wildcard searches. Added an internal viewer for matches. Added information on finds within files. Added ability to launch some files. Added ability to have the launched files display the find (internal applications only). Added ability to delete a file. Now can start a new search from within the program. Allows for a narrowing of the search using only found files. John Boyce CompuServe: 100014,1240 CIX: jboyce@cix.compulink.co.uk